//package com.wxl.rocketmq.test.consumer;
//
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.annotation.SelectorType;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.stereotype.Component;
//
//@Component
//@RocketMQMessageListener(
//        topic = "test-topic",
//        consumerGroup = "my-tag-consumer-group",
//        selectorType = SelectorType.TAG,  // 按Tag过滤
//        selectorExpression = "tagA || tagB"
//)
//public class MessageTagConsumer implements RocketMQListener<String> {
//
//    @Override
//    public void onMessage(String message) {
//        System.out.println("收到tag消息: " + message);
//        // 业务处理逻辑
//    }
//}